<!DOCTYPE html>
<html>
<head>
	<META http-equiv="content-type" content="text/html; charset=euc-kr">
	<title>Document</title>
	<script type="text/javascript">
		function myFunc() {
			var popWin = window.open('', 'popwin', 'width=400,height=300');
			var popDoc = popWin.document;
			popDoc.open();
			popDoc.write('<html><head><title>POPUP</title></head>');
			popDoc.write('<body bgColor="gold">');
			popDoc.write('<p align=center><b>팝업 창입니다.</b></p>');
			popDoc.write("</body></html>");
			popDoc.close();
		}
	</script>
</head>

<body>
	<button type=button onclick="myFunc();">새창 열기</button>
</body>
</html>
